# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-alabaster
_pkgname=alabaster
pkgver=1.0.0
pkgrel=0
pkgdesc="Lightweight, configurable Sphinx theme"
url="https://alabaster.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-flit-core py3-gpep517"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/alabaster/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-alabaster" # Backwards compatibility
provides="py-alabaster=$pkgver-r$pkgrel" # Backwards compatibility
options="!check"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
481851c0f7a6ceaf16a914b317ae610cbc082b7410e5280fcec87387da1c642f4c5ea89f261bc9282e9937c15126bc17b97a914534457be445962b3e17176e7d  alabaster-1.0.0.tar.gz
"
